package com.ruoyi.datam.util;

import java.text.NumberFormat;

public class NumberUtil {
    public static String geFourNumber(int number,int substring){
        NumberFormat formatter = NumberFormat.getNumberInstance();
        formatter.setMinimumIntegerDigits(substring);
        formatter.setGroupingUsed(false);
        return formatter.format(number);
    }

    public static void main(String[] args) {
        System.out.println(geFourNumber(15,4));
    }
}